from common.models import Options


def get_options():
    options = Options.objects.order_by('seq')
    return [{
        'name': option.name,
        'key': option.key,
        'must': option.must,
        'type': option.type,
        'widget': option.widget,
        'checkMethod': option.checkMethod
    } for option in options]
